{template common/header}
{template user/userheader}
<div class="container mt20">
	<div class="span12 main">
		{template user/usernav}
		<div class="messages">
			<h4 class="mt10 text_c">
			{lang apply_to_stay}
			</h4>
			<div class="alert alert-info">
			{lang store_approve_tip}
			</div>
         <form id="sharestore_form" action="{url home/createstore}" class="form-horizontal mt10" method="post">
         	<fieldset>
         		<input type="hidden" name="submit" value="true"/>
         		<input type="hidden" name="bannerchanged" id="bannerchanged" value="no"/>
         			<div class="control-group">
			            <label class="control-label">{lang label_image_settings}</label>
			            <div class="controls" id="cropbannerimg">
         					<input type="hidden" name="cover"/>
							<button type="button" class="btn" data-action="openBanner" data-params="store,0">{lang label_set_banner}</button>
							<img class="image-bg" src="{baseurl}assets/img/default_group_banner.gif" id="banner_store_0" height="30">
							<p class="help-block">{lang tip_open_new_win}</p>
			            </div>
			        </div>
					<div class="control-group">
			            <label class="control-label" for="store_title">{lang store_name}</label>
			            <div class="controls">
			                <input id="store_title" type="text" name="store_name"/>
			            </div>
			        </div>
			        <div class="control-group">
			            <label class="control-label" for="category_id">{lang category}</label>
			            <div class="controls">
			            	<select id="category_id" name="category_id" class="span3">
			            	{loop $storecategories $category}
			            		<option value="$category['category_id']">$category['category_name']</option>
			            	{/loop}
			            	</select>
			            </div>
			        </div>
			        {if $language=='zh_cn'}
					<div class="control-group">
			            <label class="control-label" for="province">{lang label_location}</label>
			            <div class="controls">
			            	<select id="province" name="province" class="span2"></select>&nbsp;&nbsp;
						  	<select id="city" name="city" class="span2"></select>
			              	<script type="text/javascript" src="{baseurl}assets/js/city_utf8.js"></script>
			              	<script type="text/javascript">
								initPlace('{$store['city']}','{$store['province']}');
						  	</script>
			            </div>
			        </div>
			        {else}
					<div class="control-group">
			            <label class="control-label" for="province">{lang State}</label>
			            <div class="controls">
			            	<input id="province" type="text" name="province"/>
			            </div>
			        </div>
					<div class="control-group">
			            <label class="control-label" for="city">{lang City}</label>
			            <div class="controls">
							<input id="city" type="text" name="city"/>
			            </div>
			        </div>
					{/if}
			        
					<div class="control-group">
			            <label class="control-label" for="store_title">{lang phone1}</label>
			            <div class="controls">
			                <input id="store_title" type="text" name="phone1"/>
			            </div>
			        </div>
					<div class="control-group">
			            <label class="control-label" for="store_title">{lang phone2}</label>
			            <div class="controls">
			                <input id="store_title" type="text" name="phone2"/>
			            </div>
			        </div>
					<div class="control-group">
			            <label class="control-label" for="store_title">{lang phone3}</label>
			            <div class="controls">
			                <input id="store_title" type="text" name="phone3"/>
			            </div>
			        </div>
			        
					<div class="control-group">
			            <label class="control-label" for="store_desc">{lang store_address}</label>
			            <div class="controls">
			            	<textarea id="address" name="address" rows="4" class="span4"></textarea>
			            </div>
			        </div>
					<div class="control-group">
			            <label class="control-label" for="store_desc">{lang store_desc}</label>
			            <div class="controls">
			            	<textarea id="store_desc" name="store_desc" rows="6" class="span4"></textarea>
			            </div>
			        </div>
			        
					<div class="control-group">
			            <label class="control-label" for="keyword">{lang tag}</label>
			            <div class="controls">
			            	<input id="keyword" type="text" name="keyword"/>
							<p class="help-block">{lang tag_tip}</p>
			            </div>
			        </div>
			        
			        <div class="control-group">
			        	<label class="control-label"></label>
			            <div class="controls">
			            <button type="submit" class="btn btn-primary submit-btn" data-loading-text="{lang tip_loading}">{lang save}</button>
			            </div>
			        </div>
         	</fieldset>
    	</form>
       </div>
	</div>
</div>
<script>
$(document).ready(function() {
	$.oValidate('sharestore_form');
});
</script>
{template common/footer}
